#include "gButton.h"

gButton::gButton()
{
	m_hover = [](){};
	m_click = [](){};
	m_idle  = [](){};
	m_held  = [](){};
}

gButton::~gButton()
{

}

void gButton::update()
{
	clkTexture::update();

	if(m_isHover) m_hover();
	if(m_isClick) m_click();
	if(m_isHeld)  m_held();
	if(!m_isHover) m_idle();
}